home *** CD-ROM | disk | FTP | other *** search
- function fp_start()
- {
- control_mc._visible = true;
- page_mc._visible = true;
- fp_goPage(1);
- if(ip_LMS)
- {
- fscommand("LMS_Initialize");
- }
- if(ip_mode == 2)
- {
- capture_mc.isOn = true;
- }
- }
- function fp_endPage()
- {
- if(ip_LMS)
- {
- fscommand("LMS_SetValue","PageXCompleted=" + ip_pnum);
- if(ip_pnum == ip_ptotal)
- {
- fscommand("LMS_DeInitialize");
- }
- }
- if(ip_pnum == ip_ptotal)
- {
- fp_goTimer(false);
- ip_endStat = true;
- var temp = ip_endAct.split("~");
- if(temp[0] == "1")
- {
- var temp2 = "_self";
- if(temp[2] == "2")
- {
- temp2 = "_blank";
- }
- else if(temp[2] == "3")
- {
- temp2 = "_parent";
- }
- else if(temp[2] == "4")
- {
- temp2 = "_top";
- }
- getURL(temp[1],temp2);
- delete temp2;
- }
- else if(temp[0] == "2")
- {
- fp_goPage(Number(temp[1]));
- }
- else if(temp[0] == "4")
- {
- replay_mc.gotoAndStop("start");
- }
- else if(temp[0] == "6")
- {
- fp_goPage(1);
- }
- else if(temp[0] == "5")
- {
- getURL("mailto:" + temp[1],"");
- tArr = temp.slice(2);
- }
- delete temp;
- }
- }
- function fp_goPage(n)
- {
- if(n <= ip_bpage)
- {
- if(ip_endStat)
- {
- replay_mc.gotoAndStop(3);
- ip_endStat = false;
- fp_goTimer(true);
- }
- buffer_mc.closeBuff();
- ip_pnum = n;
- ipc_slider.setSlider(ip_pnum);
- page_mc.p_onPlay = false;
- page_mc.pageInit(this["ip_pset" + n]);
- if(index_mc.appear)
- {
- index_mc.setActive();
- }
- }
- else
- {
- buffer_mc.setBuff(n);
- }
- }
- function fp_goNext()
- {
- n = ip_pnum + 1;
- if(n <= ip_ptotal)
- {
- fp_goPage(n);
- }
- }
- function fp_goPrev()
- {
- n = ip_pnum - 1;
- if(n < 1)
- {
- n = 1;
- }
- fp_goPage(n);
- }
- function fp_goTimer(cond)
- {
- page_mc.p_timeRun = cond;
- ipc_play.setButton(cond);
- if(ip_endStat)
- {
- fp_goPage(1);
- }
- }
- function fp_goPageSlide(n)
- {
- if(n != ip_pnum)
- {
- fp_goPage(n);
- }
- }
- function fp_setControl(cond)
- {
- control_mc.block_mc._visible = !cond;
- }
- function fp_mute(cond)
- {
- ip_smute = cond;
- ipc_mute.setButton(cond);
- if(cond)
- {
- ip_sound.setVolume(0);
- }
- else
- {
- ip_sound.setVolume(ip_svol);
- }
- }
- function fp_volume(vol)
- {
- ip_svol = vol;
- if(!ip_smute)
- {
- ip_sound.setVolume(ip_svol);
- }
- }
- function fp_index(cond)
- {
- ipc_index.setButton(cond);
- if(cond)
- {
- index_mc.setOn();
- }
- else
- {
- index_mc.setOff();
- }
- }
- function ip_makeText(obj, tname, d)
- {
- var setting = obj.tset.split(",");
- var link = "clip" + setting[0];
- if(setting[0] == "0")
- {
- link = "fn_Arial";
- }
- obj.attachMovie(link,tname,d);
- var tfield = obj[tname].tfield;
- tfield.border = false;
- tfield.background = false;
- tfield.multiline = true;
- tfield.wordWrap = true;
- tfield.autoSize = "left";
- tfield._width = 100;
- tfield._height = 100;
- tfield._x = 0;
- tfield._y = 0;
- var tFormat = tfield.getTextFormat();
- if(setting[2] == "1")
- {
- tFormat.align = "left";
- }
- else if(setting[2] == "2")
- {
- tFormat.align = "center";
- }
- else
- {
- tFormat.align = "right";
- }
- tFormat.size = Number(setting[1]);
- tFormat.color = "0x" + setting[3];
- tFormat.underline = setting[4] == "1";
- tfield.setNewTextFormat(tFormat);
- tfield.text = obj.tval;
- }
- function ip_colBright(c, f)
- {
- var r = c >> 16;
- var g = (c & 0xFF00) >> 8;
- var b = c & 0xFF;
- return Math.min(Math.max(r + f,0),255) << 16 | Math.min(Math.max(g + f,0),255) << 8 | Math.min(Math.max(b + f,0),255);
- }
- function ip_colTrans(c, n)
- {
- var col = new Object();
- col.ra = 100;
- col.ga = 100;
- col.ba = 100;
- col.aa = 100;
- col.ab = 0;
- col.rb = parseInt(c.substr(2,2),16) + n;
- col.gb = parseInt(c.substr(4,2),16) + n;
- col.bb = parseInt(c.substr(6,2),16) + n;
- return col;
- }
- mask_mc._width = ip_width;
- mask_mc._height = ip_height;
- page_mc._x = mask_mc._x = index_mc._x = ip_mleft;
- page_mc._y = mask_mc._y = index_mc._y = ip_mtop;
- if(ip_w > ip_width)
- {
- pos = (ip_w - ip_width) / 2;
- mask_mc._x += pos;
- page_mc._x += pos;
- }
- if(ip_h > ip_height)
- {
- pos = (ip_h - ip_height) / 2;
- mask_mc._y += pos;
- page_mc._y += pos;
- }
- if(ip_cindex)
- {
- if(ip_w < 50 || ip_h < 50)
- {
- ip_cindex = false;
- }
- }
- ip_sound = new Sound(this);
- var ip_svol = ip_sound.getVolume();
- var ip_smute = false;
- var ip_timePause = false;
- var ip_endStat = false;
-